home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 351-375 / 362 / puzz / source / menu.c < prev    next >
C/C++ Source or Header  |  1995-03-14  |  4KB  |  168 lines

  1. /*    menu stuff for PUZZ        M.J.Round    Jan 1990.    */
  2.  
  3. extern struct TextAttr MyFont;
  4.  
  5. struct IntuiText starttext =
  6.     {
  7.     1,                          /*    Front Pen            */
  8.     0,                          /*    Back pen            */
  9.     JAM2,                        /*    Draw Mode            */
  10.     0,                          /*    Left Edge            */
  11.     1,                          /*    Top                    */
  12.     &MyFont,                    /*    pointer to TextFont */
  13.     "Start",                    /*    text                */
  14.     NULL                        /*    next                */
  15.     };
  16.  
  17. struct MenuItem startitem =
  18.     {
  19.     NULL,                        /*    pointer to next item    */
  20.     0,                          /*    left                    */
  21.     0,                          /*    top                     */
  22.     40,                         /*    width                    */
  23.     9,                          /*    height                  */
  24.     ITEMTEXT
  25.     | ITEMENABLED
  26.     | HIGHCOMP,                 /*    flags                        */
  27.     0,                          /*    no mutual exclude            */
  28.     (APTR)&starttext,            /*    Render                      */
  29.     NULL,                        /*    pointer to alternate image    */
  30.     NULL,                        /*    Command "amiga" char        */
  31.     NULL,                        /*    Sub Item                    */
  32.     MENUNULL                    /*     nextselect                    */
  33.     };
  34.  
  35. /*    similarly for the other menus....    */
  36.  
  37. struct IntuiText abouttext1 =
  38. {1,0,JAM2,0,1,&MyFont,"PUZZ  V 1.0 ",NULL};
  39. struct IntuiText abouttext2 =
  40. {1,0,JAM2,0,1,&MyFont," Written by ",NULL};
  41. struct IntuiText abouttext3 =
  42. {1,0,JAM2,0,1,&MyFont,"Martin Round",NULL};
  43. struct IntuiText abouttext4 =
  44. {1,0,JAM2,0,1,&MyFont,"24 Jan 1990.",NULL};
  45. struct IntuiText abouttext5 =
  46. {1,0,JAM2,0,1,&MyFont," Shareware. ",NULL};
  47.  
  48. struct IntuiText instrtext[6] =
  49. {
  50.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL},
  51.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL},
  52.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL},
  53.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL},
  54.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL},
  55.     {1,0,JAM2,0,1,&MyFont,"..........................",NULL}
  56. };
  57.  
  58. struct IntuiText quittext =
  59. {1,0,JAM2,0,1,&MyFont,"Quit",NULL};
  60.  
  61. struct MenuItem aboutitem5 = 
  62. {
  63. NULL,0,36,96,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  64. (APTR)&abouttext5,NULL,NULL,NULL,MENUNULL
  65. };
  66.  
  67. struct MenuItem aboutitem4 = 
  68. {
  69. &aboutitem5,0,27,96,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  70. (APTR)&abouttext4,NULL,NULL,NULL,MENUNULL
  71. };
  72.  
  73. struct MenuItem aboutitem3 = 
  74. {
  75. &aboutitem4,0,18,96,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  76. (APTR)&abouttext3,NULL,NULL,NULL,MENUNULL
  77. };
  78.  
  79. struct MenuItem aboutitem2 = 
  80. {
  81. &aboutitem3,0,9,96,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  82. (APTR)&abouttext2,NULL,NULL,NULL,MENUNULL
  83. };
  84.  
  85. struct MenuItem aboutitem1 = 
  86. {
  87. &aboutitem2,0,0,96,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  88. (APTR)&abouttext1,NULL,NULL,NULL,MENUNULL
  89. };
  90.  
  91. struct MenuItem instritem6 =
  92. {
  93. NULL,0,45,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  94. (APTR)&(instrtext[5]),NULL,NULL,NULL,MENUNULL
  95. };
  96.  
  97. struct MenuItem instritem5 =
  98. {
  99. &instritem6,0,36,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  100. (APTR)&(instrtext[4]),NULL,NULL,NULL,MENUNULL
  101. };
  102.  
  103. struct MenuItem instritem4 =
  104. {
  105. &instritem5,0,27,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  106. (APTR)&(instrtext[3]),NULL,NULL,NULL,MENUNULL
  107. };
  108.  
  109. struct MenuItem instritem3 =
  110. {
  111. &instritem4,0,18,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  112. (APTR)&(instrtext[2]),NULL,NULL,NULL,MENUNULL
  113. };
  114.  
  115. struct MenuItem instritem2 =
  116. {
  117. &instritem3,0,9,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  118. (APTR)&(instrtext[1]),NULL,NULL,NULL,MENUNULL
  119. };
  120.  
  121. struct MenuItem instritem1 =
  122. {
  123. &instritem2,0,0,208,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  124. (APTR)&(instrtext[0]),NULL,NULL,NULL,MENUNULL
  125. };
  126.  
  127. struct MenuItem quititem =
  128. {
  129. NULL,0,0,32,9,ITEMTEXT | ITEMENABLED | HIGHCOMP,0,
  130. (APTR)&quittext,NULL,NULL,NULL,MENUNULL
  131. };
  132.  
  133. struct Menu aboutmenu =
  134.     {
  135.     NULL,                    /*    pointer to next menu    */
  136.     216,0,40,0,             /*    left,0,Width,0          */
  137.     MENUENABLED,            /*    flags                    */
  138.     "About",                /*    menu name                */
  139.     &aboutitem1             /*    First Item in list      */
  140.     };
  141.  
  142. struct Menu instrmenu =
  143.     {
  144.     &aboutmenu,             /*    pointer to next menu    */
  145.     104,0,96,0,             /*    left,0,Width,0          */
  146.     MENUENABLED,            /*    flags                    */
  147.     "Instructions",         /*    menu name                */
  148.     &instritem1             /*    First Item in list      */
  149.     };
  150.  
  151. struct Menu quitmenu =
  152.     {
  153.     &instrmenu,             /*    pointer to next menu    */
  154.     56,0,32,0,              /*    left,0,Width,0          */
  155.     MENUENABLED,            /*    flags                    */
  156.     "Quit",                 /*    menu name                */
  157.     &quititem                /*    First Item in list      */
  158.     };
  159.  
  160. struct Menu MyMenu =
  161.     {
  162.     &quitmenu,              /*    pointer to next menu    */
  163.     2,0,40,0,                /*    left,0,Width,0          */
  164.     MENUENABLED,            /*    flags                    */
  165.     "Start",                /*    menu name                */
  166.     &startitem              /*    First Item in list      */
  167.     };
  168.